home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-30 | 2.3 KB | 141 lines | [TEXT/CWIE] |
- { DModelessStuffData.p -- data container class for Everything}
-
- Unit DModelessStuffData;
- Interface
-
- Uses
- Types,
- OSUtils,
-
-
- AMSignaler;
-
- const
- idTools3 = longint ('Too3');
- idFromValuesList4 = longint ('Fro5');
- idFromMenu3 = longint ('Fro6');
- idTextList3 = longint ('Tex6');
-
- type
- {----------}
- DModelessStuffData = object (AMSignaler)
-
- {data members}
- mTools3: SInt16;
- mFromValuesList4: SInt16;
- mFromMenu3: SInt16;
- mTextList3: SInt16;
-
- {methods}
- Procedure Initialize; Override;
-
- Function GetTools3: SInt16;
- Procedure SetTools3 (inValue: SInt16);
- Function GetFromValuesList4: SInt16;
- Procedure SetFromValuesList4 (inValue: SInt16);
- Function GetFromMenu3: SInt16;
- Procedure SetFromMenu3 (inValue: SInt16);
- Function GetTextList3: SInt16;
- Procedure SetTextList3 (inValue: SInt16);
- end;
-
- {----------}
- Function NewDModelessStuffData: DModelessStuffData;
-
- {----------}
- Implementation
-
- {----------}
- Function NewDModelessStuffData: DModelessStuffData;
- var
- data: DModelessStuffData;
- begin
- data := nil;
- New (data);
- if data <> nil then begin
- data.Initialize;
- end;
- NewDModelessStuffData := data;
- end;
-
- {----------}
- Procedure DModelessStuffData.Initialize;
- begin
- inherited Initialize;
-
- mTools3 := 0;
- mFromValuesList4 := 0;
- mFromMenu3 := 0;
- mTextList3 := 0;
- end;
-
- {----------}
- Function DModelessStuffData.GetTools3: SInt16;
- begin
- GetTools3 := mTools3;
-
-
- end;
-
- Procedure DModelessStuffData.SetTools3 (
- inValue: SInt16);
- begin
- mTools3 := inValue;
-
-
- SignalDataChanged (idTools3);
- end;
-
- {----------}
- Function DModelessStuffData.GetFromValuesList4: SInt16;
- begin
- GetFromValuesList4 := mFromValuesList4;
-
-
- end;
-
- Procedure DModelessStuffData.SetFromValuesList4 (
- inValue: SInt16);
- begin
- mFromValuesList4 := inValue;
-
-
- SignalDataChanged (idFromValuesList4);
- end;
-
- {----------}
- Function DModelessStuffData.GetFromMenu3: SInt16;
- begin
- GetFromMenu3 := mFromMenu3;
-
-
- end;
-
- Procedure DModelessStuffData.SetFromMenu3 (
- inValue: SInt16);
- begin
- mFromMenu3 := inValue;
-
-
- SignalDataChanged (idFromMenu3);
- end;
-
- {----------}
- Function DModelessStuffData.GetTextList3: SInt16;
- begin
- GetTextList3 := mTextList3;
-
-
- end;
-
- Procedure DModelessStuffData.SetTextList3 (
- inValue: SInt16);
- begin
- mTextList3 := inValue;
-
-
- SignalDataChanged (idTextList3);
- end;
-
- end.
-